//
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
  distributed with this work for additional information
  regarding copyright ownership.  The ASF licenses this file
  to you under the Apache License, Version 2.0 (the
  "License"); you may not use this file except in compliance
  with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

div(ng-if="checkpointConfig")
  table.table
    thead
      tr
        td #[strong Option]
        td #[strong Value]
    tbody
      tr
        td Checkpointing Mode
        td(ng-if="checkpointConfig['mode'] == 'exactly_once'") Exactly Once
        td(ng-if="checkpointConfig['mode'] != 'exactly_once'") At Least Once
      tr
        td Interval
        td(ng-if="checkpointConfig['interval'] == '0x7fffffffffffffff'") Periodic checkpoints disabled
        td(ng-if="checkpointConfig['interval'] != '0x7fffffffffffffff'") {{ checkpointConfig['interval'] | humanizeDuration }}
      tr
        td Timeout
        td {{ checkpointConfig['timeout'] | humanizeDuration }}
      tr
        td Minimum Pause Between Checkpoints
        td {{ checkpointConfig['min_pause'] | humanizeDuration }}
      tr
        td Maximum Concurrent Checkpoints
        td {{ checkpointConfig['max_concurrent'] }}
      tr
        td Persist Checkpoints Externally
        td(ng-if="checkpointConfig['externalization']['enabled']")
          | Enabled
          = ' '
          span(ng-if="checkpointConfig['externalization']['delete_on_cancellation']") (delete on cancellation)
          span(ng-if="!checkpointConfig['externalization']['delete_on_cancellation']") (retain on cancellation)
        td(ng-if="!checkpointConfig['externalization']['enabled']") Disabled
